gtkgesture: Apply gesture group state after setting up sequence
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 17 May 2021 21:34:44 +0000 (23:34 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Mon, 17 May 2021 22:16:12 +0000 (00:16 +0200)
commit53df32e6cf1e2a7cbec8dd8d3b3acd4ddae2b9bf
tree96dbdbcf934012340a80a7bb2765abae256c8759
parent8670034c86f8a36910a99bb794f98cf328de2b6c
gtkgesture: Apply gesture group state after setting up sequence

When a new sequence is added to a GtkGesture, its state is looked
in other gestures in the same group, and made to match in this
gesture. This however happened a bit too early, before the
gesture touchpoint was fully set up. As this may result in signal
emission and whatnot, it's a good idea to make it happen with a
fully set up touchpoint.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/3946
gtk/gtkgesture.c